package com.shanpin.shebao.admin.module.message.constant;

public enum HotTopicType {

	FAQ(1, "常见问题"),
	KEFU(2, "客服回复"),
	;
	
	public static HotTopicType of(int num) {
		HotTopicType[] types = HotTopicType.values();
		for(HotTopicType type : types) {
			if(type.getNum() == num) {
				return type;
			}
		}
		return null;
	}
	
	private int num;
	private String name;
	
	private HotTopicType(int num, String name) {
		this.num = num;
		this.name = name;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
